package com.matrix.java.chap_06;

/*
    显示字符
 */
public class Ex6_12 {
    public static void main(String[] args) {
        printChars('1', 'Z', 10);
    }

    private static void printChars(char ch1, char ch2, int numberPerLine) {
        int count = 1;
        for (int i = '1'; i <= ('Z'); i++) {
            if (count % numberPerLine == 0) {
                System.out.println((char) i);
            } else {
                System.out.print((char) i + "\t");
            }
            count++;
        }
    }
}
